package com.sky.service;

import com.sky.QueryByPage.EmployeeQueryByPage;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.vo.EmployeeVo;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    PageResult getByPage(EmployeeQueryByPage queryByPage);

    void add(Employee employee);

    EmployeeVo getById(Integer id);

    void enable(Integer status, Integer id);

    void update(EmployeeDTO employeeDTO);

    void updatePassword(PasswordEditDTO passwordEditDTO);
}
